import { ISkillAddItem, ISkillListQuery, TableQuery,interviewListQuery,interviewQuery,ISkillInterQuery,interRecord } from '@/utils/interface';
import {DefeneState} from '@/utils/defence'

import { request } from 'umi';

// 获取专业列表
export let getSkillLabel = () => {
    return request('/sxpt/station/selectStationLabel')
}

// 获取选中的岗位列表
export let getSkillList = (params: ISkillListQuery) => {
    return request('/sxpt/station/selectStationVersionList', { params })
}
// 添加链接
export let addPostSkill = (data: ISkillAddItem) => {
    return request('/sxpt/station', {
        method: 'POST',
        // params, // URL传参
        data
    })
}

// 获取岗位详情
export let getSkillDetail = (stationVersionId: string) => {
    return request(`/sxpt/station/selectStationListById/${stationVersionId}`)
}

export let getSkillinterviewList=()=>{
    return request('/sxpt/station/selectStationLabel')
}

export let DeleteSkillListItem = ( Params : string ) => {
    return request( `sxpt/station/deleteStation?stationVersionId=${Params}` , {
        method : 'DELETE'
    } );
}
export let getinterviewList=(params: interviewListQuery)=>{
    return request('/sypt/interview/interviewList',{params})
}
export let getinterviewManage=(params:ISkillInterQuery)=>{
    return request('/sypt/interview/interviewManage',{params})
}
export let getrankList=()=>{
    return request('/sxpt/interview/interviewRecordRangkingTeacher')
}
//获取答辩列表
export let getDefenceList=(params:DefeneState)=>{
    return request("/sxpt/defence/getDefenceList",{params})
}
